<template>
  <div class="publish">
    <header>
      <p>
        <router-link to="/">《——</router-link>
      </p>
      <p>发布动态</p>
      <p>
        <span>...</span>
        <span>o</span>
      </p>
    </header>
    <main>
      <h2>动态文案</h2>
      <input type="text" />
      <h2>动态图片</h2>
      <van-uploader v-model="fileList" multiple />
    </main>
    <footer>
        <p>发布</p>
    </footer>
  </div>
</template>

<script>
export default {
  data() {
    return {
      fileList: [
        { url: "https://ns-strategy.cdn.bcebos.com/ns-strategy/upload/fc_big_pic/part-00225-2812.jpg" },
        // Uploader 根据文件后缀来判断是否为图片文件
        // 如果图片 URL 中不包含类型信息，可以添加 isImage 标记来声明
        // { url: "https://cloud-image", isImage: true }
      ]
    };
  }
};
</script>

<style lang="scss" scoped>
.publish {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  header {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 60px;
    background-color: rgb(34, 100, 177);
    color: #fff;

    p:first-child {
      a {
        color: #fff;
      }
    }
    p:nth-child(3) {
      border: 1px solid rgb(226, 226, 226);
      width: 60px;
      height: 26px;
      border-radius: 26px;
      display: flex;
      align-items: center;
      justify-content: space-around;
    }
  }

  main {
    margin-top: 20px;
    flex: 1;
    overflow-y: scroll;
    input {
      width: 100%;
      height: 100px;
    }
  }

  footer{
      p{
          text-align: center;
          line-height: 50px;
          width: 100%;
          height: 50px;
          font-size: 20px;
          background-color: rgb(94, 137, 231);
      }
  }
}
</style>